//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.lingxu.base.codegenerate.a;

import java.util.ResourceBundle;

public class a {
    private static final ResourceBundle databaseResource = ResourceBundle.getBundle("lxcode/lx_database");
    private static final ResourceBundle configResource = ResourceBundle.getBundle("lxcode/lx_config");
    public static String dbType;
    public static String driverName;
    public static String url;
    public static String userName;
    public static String password;
    public static String dbName;
    public static String createdFileSavePath;
    public static String basePackage;
    public static String baseFileDir;
    public static String htmlFileDir;
    public static String tempFileDir;
    public static boolean l = true;
    public static String m;
    public static String n = "4";
    public static String o = "3";
    public static String p;
    public static String q = "1";

    public a() {
    }

    private void n() {
    }

    public static final String gerDbType() {
        return databaseResource.getString("db_type");
    }

    public static final String gerDriverName() {
        return databaseResource.getString("diver_name");
    }

    public static final String getUrl() {
        return databaseResource.getString("url");
    }

    public static final String getUserName() {
        return databaseResource.getString("username");
    }

    public static final String getPassword() {
        return databaseResource.getString("password");
    }

    public static final String getDbName() {
        return databaseResource.getString("database_name");
    }

    public static final boolean f() {
        String var0 = configResource.getString("db_filed_convert");
        return !("false").equals(var0) ;
    }

    private static String getBasePackage() {
        return configResource.getString("bussi_package");
    }

    private static String getTempFileDir() {
        return configResource.getString("templatepath");
    }

    public static final String getBaseFileDir() {
        return configResource.getString("source_root_package");
    }

    public static final String getHtmlFileDir() {
        return configResource.getString("webroot_package");
    }

    public static final String i() {
        return configResource.getString("db_table_id");
    }

    public static final String j() {
        return configResource.getString("page_filter_fields");
    }

    public static final String k() {
        return configResource.getString("page_search_filed_num");
    }

    public static final String l() {
        return configResource.getString("page_field_required_num");
    }

    public static String getCreatedFileSavePath() {
        String var0 = configResource.getString("project_path");
        if (var0 != null && !"".equals(var0)) {
            createdFileSavePath = var0;
        }

        return createdFileSavePath;
    }

    public static void a(String var0) {
        createdFileSavePath = var0;
    }

    public static void b(String var0) {
        tempFileDir = var0;
    }

    static {
        dbType = gerDbType();
        driverName = gerDriverName();
        url = getUrl();
        userName = getUserName();
        password = getPassword();
        dbName = getDbName();
        baseFileDir = getBaseFileDir();
        htmlFileDir = getHtmlFileDir();
        basePackage = getBasePackage();
        tempFileDir = getTempFileDir();
        createdFileSavePath = getCreatedFileSavePath();
        m = i();
        l = f();
        p = j();
        o = k();


        if (url.indexOf("mysql") >= 0 || url.indexOf("MYSQL") >= 0) {
            dbType = "mysql";
        }
        if (url.indexOf("oracle") >= 0 || url.indexOf("ORACLE") >= 0) {
            dbType = "oracle";
        }
        if (url.indexOf("postgresql") >= 0 || url.indexOf("POSTGRESQL") >= 0) {
            dbType = "postgresql";
        }
        if (url.indexOf("sqlserver") >= 0 || url.indexOf("sqlserver") >= 0) {
            dbType = "sqlserver";
        }
        if (url.indexOf("kingbase8") >= 0 || url.indexOf("kingbase8") >= 0) {
            dbType = "kingbase8";
        }

        baseFileDir = baseFileDir.replace(".", "/");
        htmlFileDir = htmlFileDir.replace(".", "/");
    }
}
